package ${config.basePackage}.service;

import ${config.basePackage}.model.entity.${table.className}Entity;
import java.util.List;

/**
 * ${table.comment} 服务接口
 *
 * @author ${config.author}
 * @date ${.now?string("yyyy年MM月dd日 HH:mm:ss")}
 * @since JDK 17
 */
public interface ${table.className}Service {

    /**
     * 查询符合条件的所有${table.comment}记录
     *
     * @author ${config.author}
     * @param map 查询条件
     * @return ${table.comment}列表
     */
    List<${table.className}Entity> list(Map<String, Object> map);

    /**
     * 新增${table.comment}
     *
     * @author ${config.author}
     * @param ${table.className?uncap_first}Entity ${table.comment}实体类
     * @return 是否成功
     */
    boolean save(${table.className}Entity ${table.className?uncap_first}Entity);

    /**
     * 修改${table.comment}
     *
     * @author ${config.author}
     * @param ${table.className?uncap_first}Entity ${table.comment}实体类
     * @return 是否成功
     */
    boolean update(${table.className}Entity ${table.className?uncap_first}Entity);
}
